package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.MwfDeferEty;
import com.xhh.nphm.system.mapper.MwfDeferDao;
import com.xhh.nphm.system.service.IMwfDeferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MwfDeferServiceImpl extends ServiceImpl<MwfDeferDao, MwfDeferEty> implements IMwfDeferService {
    @Autowired
    private MwfDeferDao mwfDeferDao;

    /**
     * 信件延期申请 未审 列表数据
     * @param mwfDeferEty
     * @param deptId
     * @return
     */
    @Override
    public List<MwfDeferEty> mDeferChkNListJson(MwfDeferEty mwfDeferEty, String deptId) {
        return mwfDeferDao.mDeferChkNListJson(mwfDeferEty,deptId);
    }

    @Override
    public List<MwfDeferEty> mDeferChkNListJson_gxq(MwfDeferEty mwfDeferEty, String deptId) {
        return mwfDeferDao.mDeferChkNListJson_gxq(mwfDeferEty,deptId);
    }

    /**
     * 信件延期申请 已审列表数据
     * @param mwfDeferEty
     * @param deptId
     * @return
     */
    @Override
    public List<MwfDeferEty> mDeferChkYListJson(MwfDeferEty mwfDeferEty, String deptId) {
        return mwfDeferDao.mDeferChkYListJson(mwfDeferEty,deptId);
    }

    /**
     * 信件待本部门回复延期数据
     * @param mwfDeferEty
     * @param sendId
     * @return
     */
    @Override
    public List<Map<Object,String>> mwfDeferListJson(MwfDeferEty mwfDeferEty, String sendId) {
        return mwfDeferDao.mwfDeferListJson(mwfDeferEty,sendId);
    }
}
